<div id="user_login_logout">			 
<?php 
      if($session->check("Auth.User.id")){
      	echo $session->read("Auth.User.email"). " ";
		echo $this->Html->link($html->image(HOST.'/actions_logout.png',array('align'=>"middle")), array('controller'=>'users','action' => 'logout'),array('escape'=>false,'title'=>__("Wyloguj sie",true)));		
      }else{
      	echo __("Zaloguj sie",true)." ";
		echo $this->Html->link($html->image(HOST.'/actions_login.png',array('align'=>"middle")), array('controller'=>'users','action' => 'login'),array('escape'=>false,'title'=>__("Zaloguj sie",true)));
     }
?>
</div>

